package com.py.credit.service;

import com.py.credit.common.Page;
import com.py.credit.common.rest.RestServiceResult;
import com.py.credit.entity.CswhObj;
import com.py.credit.entity.TreeObj;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

public interface CswhService {

    List<Map<String, String>> selectDeptList(String code, String name, Page page);

    List<TreeObj> selectDeptTreeList(String name);

    List<CswhObj> getListForPage(String id, String jclb, String csbm, String remark, String deptId, String lyId, Page page);

    void add(String id, String jclb, String cs, String remark, String yj, String jczt, String csbm, String sort, String csType, String cssdValue);

    void modify(String id, String cs, String remark, String yj, String jczt, String csbm, String sort, String cssdValue);

    RestServiceResult del(String type, String ids);

    int selectSameCode(String csbm, String remark);

    int selectOtherSameCode(String id, String csbm, String remark);

    RestServiceResult addCsLy(String type, String lyId, String csIdList);

    RestServiceResult addCsDept(String type, String deptId, String csIdList);

    void delCsLy(String ly, String cs);

    void delCsDept(String dept, String cs);

    List<CswhObj> selectByGzId(String id);

    List<TreeObj> selectLyTreeList(String name, String type);

    CswhObj selectOneById(String id);

    void excelExport(HttpServletResponse response, String type);

    int selectBdGzCs(String id);
}
